
using QdbUnit.Extensions;
using QdbUnit.Extensions.Fixtures;
using Qdb.Internal;

namespace Qdb.Tests.Common.Freespace
{
	public abstract class FileSizeTestCaseBase : AbstractQdbTestCase, IOptOutTA, IOptOutInMemory
	{
		protected virtual int DatabaseFileSize()
		{
			LocalObjectContainer localContainer = Fixture().FileSession();
			localContainer.SyncFiles();
			long length = new Sharpen.IO.File(localContainer.FileName()).Length();
			return (int)length;
		}
	}
}
